package com.ruoyi.meter.mapper;

import java.util.List;
import com.ruoyi.meter.domain.MeterLedger;

/**
 * 计量台账Mapper接口
 *
 * @author ruoyi
 * @date 2024-07-23
 */
public interface MeterLedgerMapper
{
    /**
     * 查询计量台账
     *
     * @param projectId 计量台账主键
     * @return 计量台账
     */
    public MeterLedger selectMeterLedgerByProjectId(Long projectId);
    public MeterLedger selectMeterLedgerByFree1(MeterLedger meterLedger);

    /**
     * 查询计量台账列表
     *
     * @param meterLedger 计量台账
     * @return 计量台账集合
     */
    public List<MeterLedger> selectMeterLedgerList(MeterLedger meterLedger);
    public List<MeterLedger> selectNoodlesList(MeterLedger meterLedger);
    public MeterLedger selectMeterLedgerCountList(MeterLedger meterLedger);

    /**
     * 新增计量台账
     *
     * @param meterLedger 计量台账
     * @return 结果
     */
    public int insertMeterLedger(MeterLedger meterLedger);

    /**
     * 修改计量台账
     *
     * @param meterLedger 计量台账
     * @return 结果
     */
    public int updateMeterLedger(MeterLedger meterLedger);
    public int updateMeterLedgerByFree1(MeterLedger meterLedger);

    /**
     * 删除计量台账
     *
     * @param projectId 计量台账主键
     * @return 结果
     */
    public int deleteMeterLedgerByProjectId(Long projectId);

    /**
     * 批量删除计量台账
     *
     * @param projectIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMeterLedgerByProjectIds(Long[] projectIds);
}
